package com.ssm.serviceimp;

import com.ssm.dao.IDeliveryDao;
import com.ssm.model.Delivery;
import com.ssm.model.Order;
import com.ssm.service.DeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("deliveryService")
public class DeliveryServiceImp implements DeliveryService {
    @Autowired
    private IDeliveryDao deliveryDao;

    @Override
    public List<Delivery> selectAllDelivery()
    {
        return deliveryDao.selectAllDelivery();
    }

    @Override
    public void addDelivery(Delivery delivery)
    {
        deliveryDao.addDelivery(delivery);
    }
}
